<template>
  <div id="app" class="main-container">
    <el-container style="height: 100vh;">
      <el-header>Header</el-header>
      <el-container>
        <el-aside width="200px">Aside</el-aside>
        <el-main>
          <router-view/>
          <div id="child-app1" v-show="$route.path.startsWith('/child-app1')"></div>
          <div id="child-app2" v-show="$route.path.startsWith('/child-app2')"></div>
          <app1-say-hi v-if="$store.state.app1Mounted" />
        </el-main>
      </el-container>
    </el-container>    
  </div>
</template>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50; 
}

.main-container{
 min-height: 100vh;
}

.el-header, .el-footer {
    background-color: #B3C0D1;
    color: #333;
    text-align: center;
    line-height: 60px;
  }
  
  .el-aside {
    background-color: #D3DCE6;
    color: #333;
    text-align: center;
    line-height: 200px;
  }
  
  .el-main {
    background-color: #E9EEF3;
    color: #333;
    text-align: center;
    line-height: 160px;
  }
</style>
